package com.wenli.graduate2022.wenliGreenShop.service.servDao;

import com.wenli.graduate2022.wenliGreenShop.entity.ProductOrderItem;
import com.wenli.graduate2022.wenliGreenShop.entity.ShoppingCart;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author HuangHai
 * @date 2021/10/13 16:19
 */

public interface ShoppingCartService {
    ShoppingCart findById(Integer id);        //根据id查询产品订单
    List<ShoppingCart> findByUserId(Integer id);  //根据用户id查询该用户下的所有产品订单
    int addShoppingCart(ShoppingCart shoppingCart);
    int updateShoppingCart(ShoppingCart shoppingCart);
    int deleteShoppingCart(Integer shoppingCartId);




}
